package cn.tedu.boyou.acticle.service;

import cn.tedu.boyou.acticle.domain.Destination;
import cn.tedu.boyou.acticle.domain.StrategyContent;
import cn.tedu.boyou.acticle.domain.StrategyDetail;
import cn.tedu.boyou.acticle.vo.StrategyStatisVO;
import cn.tedu.boyou.common.query.StrategyDetailQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyDetailService {
    PageInfo query(StrategyDetailQuery qo);

    /**
     * 新增或修改
     * @param strategyDetail
     * @param tags
     */
    void saveOrUpdate(StrategyDetail strategyDetail, String[] tags);

    void delete(Long id);

    boolean isChina(Destination dest) ;
    /**
     * 获取单个明细
     * @param id
     * @return
     */
    StrategyDetail get(Long id);

    /**
     * 修改状态
     * @param state
     * @param id
     */
    void changeState(Integer state, Long id);

    List<StrategyDetail> listAll(Long id);

    StrategyContent getContent(Long id);

    List<StrategyDetail> getReadTop3(Long destId);

    List<StrategyDetail> listAll();


    void updateStatisData(StrategyStatisVO statisVo);

    List<StrategyDetail> getDetailTop5();

}
